package com.zpark.se.thread;

/**
 * 创建线程方式二：实现Runnable接口，并且实现run方法
 */
public class RunnableDemo01 implements Runnable {
    @Override
    public void run() {
        // 循环10万次
        for (int i = 0; i < 100000; i++) {
            System.out.println("线程RunnableDemo01执行了" + (i+1) + "次");
        }
    }
}
